﻿using AyaWo.Commen;
using AyaWo.DbF;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Qbqqban
{
    /// <summary>
    /// 基础服务
    /// </summary>
    public class BaseService
    {
        /// <summary>
        /// 数据库连接
        /// </summary>
        public static IDbHelper Db
        {
            get
            {
                try
                {
                    return new DbHelper("server=122.112.229.171;user id=ContentDb ;password=ContentDb123!@#;database=contentdb;charset=utf8", SqlSourceType.MySql);
                }
                catch (Exception ex)
                {
                    Log.Error(ex.Message);
                    return null;
                }
            }
            private set
            {
            }
        }
    }
}
